<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
<!-- 容器 -->
<div id="root">
<!--    <h1 v-if="false">{{allname}}</h1><br>-->
    <h1 v-show="true">{{allname}}</h1>
<!--    <h1 v-if="false">1</h1>-->
<!--    <h2 v-else-if=false>2</h2>-->
<!--    <h2 v-else>3</h2>-->
<!--    <template v-if="true">-->
<!--        <h1>1</h1><br>-->
<!--        <h2>2</h2><br>-->
<!--        <h3>3</h3><br>-->
<!--    </template>-->

</div>
<script type="text/javascript">
    new Vue({
        el: '#root',
        data:{
            allname: 'Hello Vue'
        },
    })
</script>
</body>
</html>